package com.yong.automoguding.remote;

import com.yong.automoguding.annotation.RetrofitApi;
import com.yong.automoguding.dto.*;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;

import java.util.Map;


/**
 * 蘑菇钉三件套
 * @author Hes
 */
@RetrofitApi("https://api.moguding.net:9000")
public interface MogudingApi {

    /**
     * 上下班
     * @param mogudingClockRequest
     * @param maps
     * @return
     */
    @POST("/attendence/clock/v1/save")
    MogudingResponse clock(@Body MogudingClockRequest mogudingClockRequest, @HeaderMap Map<String, String> maps);

    /**
     * 登录
     * @param loginInfo
     * @return
     */
    @POST("/session/user/v1/login")
    MogudingResponse login(@Body Map<String, Object> loginInfo);


    /**
     * 写日志
     * @param mogudingDaily
     * @param header
     * @return
     */
    @POST("/practice/paper/v1/save")
    MogudingResponse daily(@Body MogudingDaily mogudingDaily, @HeaderMap Map<String,String> header);


    /**
     * 获取planId
     * @param loginInfo
     * @param header
     * @return
     */
    @POST("/practice/plan/v1/getPlanByStu")
    MogudingResponse getPlanByStu(@Body Map<String, Object> loginInfo,
                                        @HeaderMap Map<String, String> header);




}
